Skip to content

feat: Upgrade Python dependency xblocks-core - #39416

Open
github-actions[bot] wants to merge 1 commit into
masterfrom
farhan/upgrade-xblocks-core-b9e3b3b
Open

github-actions[bot] wants to merge 1 commit into
masterfrom
farhan/upgrade-xblocks-core-b9e3b3b

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

PR generated by workflow openedx/openedx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master on behalf of @farhan.

Commit generated by workflow `openedx/openedx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
@farhan

farhan commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Blocked on #39382. xblocks-core 3.x removed the UseUnsafeCodejail test decorator (openedx/xblocks-core#222), so platform tests fail with an ImportError until #39382 switches them to the send_safe_exec_request_locally setting.

fyi @irfanuddinahmad

@irfanuddinahmad

Copy link
Copy Markdown
Contributor

Heads-up: one more test will fail once this bump reaches ≥3.1.0. Right now it's hidden behind the UseUnsafeCodejail import errors, which #39382 fixes.

lms/djangoapps/courseware/tests/test_lti_integration.py::TestLTIExtracted::test_lti_preview_handler fails because xblocks-core 3.1.0 (openedx/xblocks-core#336) passes i18n_service= to render_django_template in LTI's preview_handler. The test still expects the mocked call with no kwargs. I reproduced it on master's test file with xblocks-core 3.1.1 (3.0.0 isn't affected).

This fix works on both old and new versions (5 passed on 3.1.1; on older versions the kwargs are empty, so nothing changes):

mock_render_django_template.assert_called_once()
expected_content = self.runtime.render_template(
    'templates/lti_form.html', self.expected_context, **mock_render_django_template.call_args.kwargs
)

Generated using Claude Code

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants